<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="navbar-wrapper" th:fragment="top">
  <div class="container">

    <nav class="navbar navbar-inverse navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">化院零食小卖部</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a th:href="@{/user/userhomepage}">主页</a></li>
            <li><a th:href="@{/user/userorderpage(id=${userlogin})}">购物车</a></li>
            <li><a th:href="@{/user/useracountpage(id=${userlogin})}">个人账户信息</a></li>
            <li><a href="/user/exit">退出登录</a></li>
          </ul>
        </div>
      </div>
    </nav>

  </div>
</div>

<div id="myCarousel" class="carousel slide" data-ride="carousel" th:fragment="top-back">
  <div class="carousel-inner" role="listbox">
    <div class="item active">
      <div class="container">
        <div class="carousel-caption">
          <h1>零食小卖部</h1>
          <p>这是个人开发的小程序，很适合在校大学生在学校做的项目，你可以在上面录入自己想要出售的商品，它可以帮你计算你的出售记录和收益，多谢你的使用。</p>
          <p><a class="btn btn-lg btn-primary" href="#" role="button">充值</a></p>
        </div>
      </div>
    </div>
  </div>
  <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div><!-- /.carousel -->

<div th:fragment="user-foot">
  <div class="row featurette">
    <div class="col-md-7">
      <h2 class="featurette-heading">负责人 <span class="text-muted">产品物美价廉</span></h2>
      <p class="lead">如果想要合作 情联系我~~~</p>
    </div>
    <div class="col-md-5">
      <img class="featurette-image img-responsive center-block" src="/images/3.png" alt="Generic placeholder image">
    </div>
  </div>

  <hr class="featurette-divider">
  <footer>
    <p class="pull-right"><a href="#">Back to top</a></p>
    <p>&copy; 2021-7-28 湖南化工职业技术学院自信学院通软zzy <a href="#">感谢...</a> &middot; <a href="#">Terms</a></p>
  </footer>
  <hr class="featurette-divider">
</div>




<!--=====================admin-->
<div class="masthead clearfix" th:fragment="admintop">
  <div class="inner">
    <h3 class="masthead-brand">管理员登录页面</h3>
    <nav>
      <ul class="nav masthead-nav">
        <li class="active">
          <div class="dropdown">
            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
              商品添加
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
              <li><a href="/admin/selectallgoodspage">所有商品</a></li>
              <li><a href="#">修改商品</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/admin/deleteallgoods">清空</a></li>
            </ul>
          </div>
        </li>
        <li>
          <div class="dropdown">
            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
              订单查看
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
              <li><a href="/admin/selectallorderpage">查看</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/admin/deleteallorders">清空</a></li>
            </ul>
          </div>
        </li>
        <li>
          <div class="dropdown">
            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
              用户管理
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
              <li><a href="/admin/getalluserpage">用户查看</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/admin/deleteallusers">删除所有</a></li>
            </ul>
          </div>
        </li>
        <li>
          <div class="dropdown">
            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu4" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
              订单流水
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
              <li><a href="/admin/selectallearn">所有订单</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/admin/deleteallearns">清空</a></li>
            </ul>
          </div>
        </li>

      </ul>
    </nav>
  </div>
</div>



</body>
</html>